package mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import pojo.Food;

import java.util.List;

public interface IFoodMapper {
    @Select("select * from food")
    List<Food> getFoodList();
    //根据businessId查询
    @Select("select * from food where businessId=#{id}")
    List<Food> findFoodById(@Param("id") Integer id);

}
